export default {
  /**
   * 维保单位管理涉及的接口-----------------------------------------------------------------------------
   *
   *
   */

  /**
   * 02300001---维保单位列表
   * /device/devicemaintenance/list
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   *
   */
  "POST /device/devicemaintenance/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            maintenanceId:"1",
            maintenanceName: "单位名称11",
            mainAddress:"杭州市下城区XXX",
            linkman: "张三",
            phone: "0571-1121322",
            email: "fan@qq.com",
          },
          {
            maintenanceId:"2",
            maintenanceName: "单位名称11",
            mainAddress:"杭州市下城区XXX",
            linkman: "张三",
            phone: "0571-1121322",
            email: "fan@qq.com",
          }
        ]
      }
    });
  },


  /**
   * 02300002---添加维保单位
   * /device/devicemaintenance/save
   * @param  {string}  maintenanceName          单位名称
   * @param  {string}  mainAddress       地址
   * @param  {string}  linkman           联系人
   * @param  {string}  phone             联系电话
   * @param  {string}  email             邮箱
   * @param  {string}  fax               传真
   * @param  {string}  remarks           备注
   *
   */
  "POST /device/devicemaintenance/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 02300003---修改维保单位
   * /device/devicemaintenance/update
   * @param  {string}  maintenanceId            维保id
   * @param  {string}  maintenanceName          单位名称
   * @param  {string}  mainAddress       地址
   * @param  {string}  linkman           联系人
   * @param  {string}  phone             联系电话
   * @param  {string}  email             邮箱
   * @param  {string}  fax               传真
   * @param  {string}  remarks           备注
   */
  "POST /device/devicemaintenance/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 02200004---获取单个维保信息
   * /device/devicemaintenance/info/{maintenanceId}
   * @param  {string}  maintenanceId            维保id
   *
   */
  "POST /device/devicemaintenance/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        maintenanceId:"1",
        maintenanceName: "单位名称11",
        mainAddress:"杭州市下城区XXX",
        linkman: "张三",
        phone: "0571-1121322",
        email: "fan@qq.com",
        fax:"0571-1121322",
        remarks:"备注内容……",
      }
    });
  },


  /**
   * 02300005---设备（单个）批量操作 删除
   * /device/devicemaintenance/delete
   * @param  {array}   maintenanceIds              维保单位id，支持多个
   */
  "POST /device/devicemaintenance/delete": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 02300006---维保服务设备清单
   * /device/devicemaintenance/getDevcieInfoByMaintenanceId
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  maintenanceId         维保单位id
   */
  "POST /device/devicemaintenance/getDevcieInfoByMaintenanceId": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list:[{
          devId:"1",
          devCode:"1000",
          devName:"网络摄像头",
          devModel:"00132323",
          districtName:"上城区",
          pointName:"点位001",
        },{
          devId:"2",
          devCode:"1000",
          devName:"网络摄像头",
          devModel:"00132323",
          districtName:"上城区",
          pointName:"点位002",
        }]
      }
    });
  },

  /**
   * 02300007---设备（单个）批量导出
   * @param  {string}   maintenanceIds        维保单位id，隔开
   */
  "POST /02300007": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 02300008---备件（单个）批量导入
   * @param  {string}   file_url    上传到服务器的文件路径（上传接口统一调用公用的，得到token后回传）
   */
  "POST /02300008": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 02300009---移动维保单位
   * /device/deviceinfo/move
   * @param  {string}   devIds    支持多选
   * @param  {string}   maintenanceId    需要移动到的维保单位
   */
  "POST /device/deviceinfo/move": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },





};
